home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-07 | 1.6 KB | 57 lines | [TEXT/DWat] |
- % Plot a series of blackbody curves (Planck functions)
-
- npts 200
- graphlimits 4 24 -30 15
- graphframe 1.5 7 2 9
- fullscreen yes
- graphticks -1 2 -1 2 % Log ticks, small every decade, big every 2 decades
- notation scientific % Force axis labels to have only the exponent part
- digits 0 % in scientific notation
- fontsize 10 % Use a smaller font because there are so many labels
- drawframe
- drawxlabel Frequency, \sn [Hz]
- drawylabel Brightness B\d\sn(T) [erg s\\u-1\\d cm\\u-2\\d Hz\\u-1\\d steradian\\u-1\\d]
- scale scale 2 * % Draw the title twice as big
- drawtitle Blackbody Curves
- scale scale 2 /
-
- % Draw some double arrows to indicate basic wavelength bands
- scale scale 0.75 *
- drawdoublearrow xleft "ybottom 2 +" 11.5 "ybottom 2 +" Radio
- drawdoublearrow 11.5 "ybottom 2 +" 14.0 "ybottom 2 +" Infrared
- drawdoublearrow 14.0 "ybottom 2 +" 15.5 "ybottom 2 +" Optical
- drawdoublearrow 15.5 "ybottom 2 +" xright "ybottom 2 +" "X ray and ultraviolet"
- scale scale 0.75 /
-
- % Restore default values
- fontsize
- notation
-
- % Fill the x data with values that span the current graph limits
- xrange xleft xright
-
- % Set a variable (T) and loop it to calculate each curve
- % The step expression "10 T * T -" increments T by a factor of
- % 10 with each step
- for T from 10 to 1E10 by 10 T * T - do Plot_Next_BlackBody T
-
- % Add a second x axis to show the wavelengths
- notation scientific
- digits 0
-
- fontsize 10
- % Offset the axis 3/4 of an inch below the first x axis
- graphframe gleft gright gbottom 0.75 - gtop
-
- % Calcuate the limits for the wavelength (lambda = c/nu)
- graphlimits c xleft 10^x / log c xright 10^x / log 0 0
-
- % Draw the axis and its label
- drawaxis bottom
- drawxlabel Wavelength, \sl [cm]
-
-
-
-
-
-